<template>
	<u-action-sheet :list="list" @click="click" border-radius="24" safe-area-inset-bottom v-model="show"></u-action-sheet>
</template>

<script>
	export default {
		name:"bottom-choose",
		data() {
			return {
				show: false,
				list: [{
						text:"相机",
						sourceType: 'camera'
					},
					{
						text:"从相册选择",
						sourceType: 'album',
					},
				]
			}
		},
		computed: {},
		methods: {
			open(){
				this.show=true
			},
			click(e) {
				if(this.list[e]&&this.list[e].sourceType){
					this.$emit("change",this.list[e].sourceType)
				}
			},
			handleClose() {
				this.show=false
			},
		},
	}
</script>

<style lang="scss" scoped>
</style>
